
export default function fromat() {
  const data = new Date()
  let YY = data.getFullYear();
  let MM = data.getMonth()
  let DD = data.getDate()
  let hh = data.getHours()
  let mm = data.getMinutes()
  let ss = data.getSeconds()
  YY = YY < 10 ? '0' + YY : YY
  MM = MM < 10 ? '0' + MM : MM
  DD = DD < 10 ? '0' + DD : DD
  hh = hh < 10 ? '0' + hh : hh
  mm = mm < 10 ? '0' + mm : mm
  ss = ss < 10 ? '0' + ss : ss
  return `${YY}-${MM}-${DD} ${hh}:${mm}:${ss}`
}
